﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DACU.VkontakteApi.Collections
{
	class VKIdsCollectionHelper<T>:List<T>
	{
		public bool IsEmpty
		{
			get { return Count < 1; }
		}

		public VKIdsCollectionHelper()
		{
		}

		public VKIdsCollectionHelper(IEnumerable<T> collection):base(collection)
		{
		}

		public VKIdsCollectionHelper(int capacity):base(capacity)
		{
		}

		public string ToFormatedString(string tag=null)
		{
			var sb = new StringBuilder();
			ForEach(t => sb.AppendFormat("{0},", t));
			sb.Remove(sb.Length - 1, 1);
			return (!String.IsNullOrWhiteSpace(tag) ? tag : "") + sb;
		}
	}
}
